<template>
	<view>
		<!-- :statusBar=true 保留状态栏 -->
		<uni-nav-bar @clickLeft="back()" @clickRight="openGear()" leftIcon="arrowleft" rightIcon="gear"
			:statusBar="true">
			<view class="flex-sc-ac" style="width: 100%;font-size: 32rpx;font-weight: 500;">
				我
			</view>
		</uni-nav-bar>
		<view class="paper-list" @tap="openSpace()">
			<view class="paper-list-left">
				<image src="../../static/demo/topicpic/11.jpeg" mode="widthFix" lazy-load></image>
			</view>
			<view class="paper-list-center">
				<view class="paper-list-header">
					<view class="flex-sp-ac">
						<view style="font-size: 35rpx;font-weight: 500;margin-top: 10rpx;">张三</view>
					</view>
				</view>
				<view class="paper-list-title flex-sp-ac" style="margin-top: 13rpx;">
					<view>
						总访客 0 今日 0
					</view>
				</view>
			</view>
			<view class="paper-list-right">
				<view class="icon iconfont icon-jinru" style="font-weight: bold;font-size: 40rpx;"> </view>
			</view>
		</view>
		<view class="flex-sp-ac" style="margin-top: 15rpx;">
			<view style="width: 25%; padding-left: 100rpx;">
				<view style="padding-left: 15rpx;">
					0
				</view>
				<view>
					糗事
				</view>
			</view>
			<view style="width: 25%;">
				<view style="padding-left: 15rpx;">
					0
				</view>
				<view>
					动态
				</view>
			</view>
			<view style="width: 25%;">
				<view style="padding-left: 15rpx;">
					0
				</view>
				<view>
					评论
				</view>
			</view>
			<view style="width: 25%;">
				<view style="padding-left: 15rpx;">
					0
				</view>
				<view>
					收藏
				</view>
			</view>
		</view>
		<swiper class="topic-swiper" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<block v-for="(item,index) in topic.swiper" :key="index">
				<swiper-item>
					<image :src="item.src" mode="widthFix" lazy-load></image>
				</swiper-item>
			</block>
		</swiper>
		<view class="flex-sp-ac list-header">
			<view class="flex-ac" style="margin-left: 30rpx;">
				<view class="icon iconfont icon-liulan active" style="margin-right: 15rpx;margin-top: 5rpx;"></view>浏览历史
			</view>
			<view class="icon iconfont icon-jinru" style="margin-right: 30rpx;"></view>
		</view>
		<view class="flex-sp-ac list-header">
			<view class="flex-ac" style="margin-left: 30rpx;">
				<view class="icon iconfont icon-huiyuanvip active-huiyuan"
					style="margin-right: 15rpx;margin-top: 5rpx;"></view>糗百认证
			</view>
			<view class="icon iconfont icon-jinru" style="margin-right: 30rpx;"></view>
		</view>
		<view class="flex-sp-ac list-header">
			<view class="flex-ac" style="margin-left: 30rpx;">
				<view class="icon iconfont icon-icon_im_keyboard active" style="margin-right: 15rpx;margin-top: 5rpx;">
				</view>审核糗事
			</view>
			<view class="icon iconfont icon-jinru" style="margin-right: 30rpx;"></view>
		</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				topic: {
					swiper: [{
							src: "../../static/demo/lunbo2.jpg"
						},
						{
							src: "../../static/demo/lunbo1.jpg"
						},
						{
							src: "../../static/demo/banner2.jpg"
						}
					]
				},
			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				});
			},
			openGear() {
				uni.navigateTo({
					url: '../gear-one/gear-one'
				});
			},
			openSpace() {
				uni.navigateTo({
					url: '../personal-space/personal-space'
				});
			}
		}
	}
</script>

<style>
	.active {
		color: #44b3ff;
		font-size: 30rpx;
	}

	.active-huiyuan {
		color: #ff7434;
	}

	.paper-list {
		padding: 20rpx 0rpx 5rpx 20rpx;
		display: flex;
	}

	.paper-list-left {
		flex-shrink: 0;
		/*不会被压缩*/
	}

	.paper-list-left image {
		width: 110rpx;
		height: 110rpx;
		border-radius: 100%;
	}

	.paper-list-center {
		/* border: 1px solid; */
		margin-left: 25rpx;
		flex: 1;
		/*占据剩余的所有空间*/
		padding-bottom: 15rpx;
	}

	.paper-list-right {
		display: flex;
		justify-content: center;
		margin-right: 20rpx;
		align-items: center;
	}

	.paper-list-header>view:nth-child(1) text {
		color: #000000;
		font-size: 35rpx;
		font-weight: bold;
	}

	.paper-list-title {
		color: #888888;
		font-size: 30rpx;
	}

	.paper-list-news {
		background-color: #ff6434;
		color: #FFFFFF;
		width: 50rpx;
		height: 50rpx;
		border-radius: 50%;
		text-align: center;
		margin-right: 20rpx;
	}

	.topic-swiper {
		padding: 0rpx 20rpx 20rpx 20rpx;
		margin-top: 30rpx;
		border-bottom: #f4f4f4 1rpx solid;
	}

	.topic-swiper image {
		width: 100%;
		border-radius: 15rpx;
	}

	.list-header {
		height: 100rpx;
		font-size: 30rpx;
		border-bottom: #f4f4f4 1rpx solid;
	}
</style>
